You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > clVector Structure > clVector Methods > Rotate Method > clVector.Rotate Method ([In] TOpenCLMtxVec, int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
clVector.Rotate Method ([In] TOpenCLMtxVec, int)

A cyclic shift on vector elements.

Syntax
C#
Visual Basic
public TOpenCLVector Rotate([In] TOpenCLMtxVec Src, int Offset);

Performs cyclic shift on vector elements. The number of elements to shift is specified in the Offset parameter. Offset can be any integer number, positive or negative.

var a: clVector; begin a.CopyFromArray(TSingleArray.Create(1,2,3,4)); b.Rotate(a, 2); // b = [3,4,1,2] end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!